package string.leetcode;

/**
 * @author yuisama
 * @date 2022/11/03 18:35
 **/
public class Num709_ToLowerCase {
    public String toLowerCase(String s) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c >= 'A' && c <= 'Z') {
                int a = c += 32;
                c = (char) a;
            }
            sb.append(c);
        }
        return sb.toString();
    }
}